package org.agile2soft.nexoma.core.controller.impl;

import java.util.List;

import org.agile2soft.nexoma.core.controller.ServiceOptionController;
import org.agile2soft.nexoma.core.dao.ServiceOptionDAO;
import org.agile2soft.nexoma.core.entity.Service;
import org.agile2soft.nexoma.core.entity.ServiceOption;

import br.com.arsmachina.controller.impl.SpringControllerImpl;

public class ServiceOptionControllerImpl
       extends SpringControllerImpl<ServiceOption, Integer>
       implements ServiceOptionController {

    private ServiceOptionDAO serviceOptionDAO;

    public ServiceOptionControllerImpl(ServiceOptionDAO serviceOptionDAO) {
        super(serviceOptionDAO);
        this.serviceOptionDAO = serviceOptionDAO;
    }

    public List<ServiceOption> findByService(Service service) {
        return serviceOptionDAO.findByService(service);
    }

}
